/*
 * @Author: 鱿鱼溪学院
 * @Date: 2024-10-25 01:20:33
 * @LastEditTime: 2024-10-27 01:31:03
 * @LastEditors: 鱿鱼溪学院
 * @Description:
 * @FilePath: \yyx-play\src\main.ts
 * Copyright 鱿鱼溪学院 by edu v1.0
 * 天道酬勤
 */
import "./assets/main.css";

import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

import vueVideoPlus from "vue-video-plus"; // 引入组件
import "vue-video-plus/dist/style.css"; // 引入css

//import VueClickAway from "vue3-click-away"; // 点击其他地方关闭模块

//引入element-plus的click-outside指令
import ClickOutside from "element-plus/es/directives/click-outside/index.mjs";

import App from "./App.vue";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

//注册element-plus的clickoutside指令
app.directive("clickoutside", ClickOutside);

//app.use(VueClickAway);
app.use(vueVideoPlus);

app.use(ElementPlus);

app.mount("#app");
